home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / pdcurs21.zip / FLEXOS.ZIP / _GNAME.C < prev    next >
Text File  |  1992-11-21  |  1KB  |  41 lines

  1. #define        CURSES_LIBRARY  1
  2. #include <curses.h>
  3.  
  4. #ifndef NDEBUG
  5. char *rcsid__gname = "$Header: c:/curses/flexos/RCS/_gname.c%v 2.0 1992/11/15 02:42:08 mh Rel $";
  6. #endif
  7.  
  8.  
  9.  
  10.  
  11. #ifdef FLEXOS
  12. VIRCON vir;                    /* Allocate a Virtual Console Structure */
  13.  
  14. /*man-start*********************************************************************
  15.  
  16.   _flexos_gname()      - FLEXOS: Return virtual console name
  17.  
  18.   PDCurses Description:
  19.        This is a Flexos platform PDCurses function.
  20.  
  21.        This routine returns the name of the Flexos virtual console.
  22.        The VIRCON vir structure is initialized within the initscr()
  23.        calltree.
  24.  
  25.   PDCurses Return Value:
  26.        This routine returns a character pointer.
  27.  
  28.   PDCurses Errors:
  29.        No errors are defined for this routine.
  30.  
  31.   Portability:
  32.        PDCurses        char*   _flexos_gname( void );
  33.  
  34. **man-end**********************************************************************/
  35.  
  36. char*  _flexos_gname(void)
  37. {
  38.        return (&vir.vc_wname[0]);
  39. }
  40. #endif
  41.